/**
 * @(#) StartupCommand.as
 *
 * @date		2010. 11. 01
 * @version		2.0
 * @author		Shin, Yunwoo
 * @client		Service Ace 
 * @module		Compensation  (급여)
 * @description	startup - Command
 * 				
 */
package com.skt.common_hr.compensation.controller
{
	import com.skt.common_hr.compensation.model.*;
	import com.skt.common_hr.compensation.view.*;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	public class StartupCommand extends SimpleCommand implements ICommand
	{
		override public function execute(note:INotification):void
		{
			var module:Compensation = note.getBody() as Compensation;
			
			facade.registerProxy(new RegCheckProxy());
			facade.registerProxy(new PassWordCheckProxy());
			facade.registerProxy(new FiscalYearsProxy());
			facade.registerProxy(new PaySummaryProxy());
			facade.registerProxy(new PaymentProxy());
			
			facade.registerMediator(new CompensationMediator(module.overView));
			facade.registerMediator(new PassWordCheckMediator(module.overView.checkView));
		}
	}
}